package kgame5.kengine.events {
import flash.events.Event;

/**
 * @author kk
 */
public class SendCommandEvent extends Event{
	public static const TYPE:String="SendCommandEvent";
	//___________________Property_____________________
	
	//这两个，参考pureMVC Inotifycation.getName(),getBody();
	private var commandName:String;//具体名称
	private var data:Object;//值
	//____________________Method__________________
	public function SendCommandEvent(p_commandName:String,p_data:Object=null){
		super(TYPE);
		commandName=p_commandName;
		data=p_data;
	}
	
	public override function clone():Event{
		return new SendCommandEvent(commandName,data);
	}
	
	public function getData():Object{
		return data;
	}
	
	public function getCommandName():String{
		return commandName;
	}
}
}
